package com.jw.qme.domain.po;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("chat_conversation")
@AllArgsConstructor
@NoArgsConstructor
public class ChatConversation {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String userId;

    private String friendId;

    private Long orderNo;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private Integer unreadCount;

    private Integer isShow;

    public ChatConversation(String userId, String friendId, Long orderNo) {
        this.userId = userId;
        this.friendId = friendId;
        this.orderNo = orderNo;
    }

    public ChatConversation(String userId,Integer isShow){
        this.userId = userId;
        this.isShow = isShow;
    }

}
